<%@ taglib uri="http://java.sun.com/portlet" prefix="portlet" %>

<%@ page import="javax.portlet.RenderRequest" %>
<%@ page import="javax.portlet.RenderResponse" %>
<%@ page import="javax.portlet.ActionResponse" %>
<%@ page import="javax.portlet.PortletPreferences" %>

<%@ page import="pl.edu.agh.portal.application.types.Project" %>
<%@ page import="pl.edu.agh.portal.application.utils.PortletsUtils" %>

<%@ page session="false" %>

<portlet:defineObjects/>

<% 
	Project project = (Project)(renderRequest.getAttribute(PortletsUtils.ATTRIBUTE_PROJECT_FOR_REMOVE));
%>

<table width="100%">
	<tr>
		<td align="center">
			<h2>Czy na pewno chcesz usunac projekt(zostana usuniete takze zadania przypisane do tego projektu)?</h2>
		</td>
	</tr>
  	<tr>
    	<td align="center" width="100%">
	    	<form method="post" action="<portlet:actionURL/>">
				<table width="100%" border="1">
					<tr>
						<td width="100%" align="center" colspan="2"><B><%= PortletsUtils.PROJECTS_NAME %>:</B>&nbsp;&nbsp;<%= project.getProjectName() %></td>						
					</tr>
					
					<tr>
						<td width="100%" align="center" colspan="2"><B><%= PortletsUtils.CREATION_DATE %>:</B>&nbsp;&nbsp;<%= project.getCreateDate() %></td>						
					</tr>
					
					<tr>
						<td width="100%" align="center" colspan="2">
							<B><%= PortletsUtils.SHORT_DESCRIPTION %></B>
						</td>						
					</tr>					
					<tr>
						<td width="100%" align="center" colspan="2">
							<textarea name="<%= PortletsUtils.PARAMETER_PROJECT_DESCRIPTION %>" rows="6" cols="70%"><%= project.getDescription() %></textarea> 
						</td>
					</tr>
					
					<tr><td colspan="2"><br></br></td></tr>					
					<tr>
						<td width="50%" align="right">							
							<input type="image" name="<%= PortletsUtils.PROJECT_REMOVE_KEY %>" value="<%= PortletsUtils.BUTTON_REMOVE %>" alt="<%= PortletsUtils.BUTTON_REMOVE %>" height="100%" width="100%""/>
							&nbsp;&nbsp;
						</td>
						<td width="50%" align="left">
							&nbsp;&nbsp;
							<input type="image" name="<%= PortletsUtils.PROJECT_REMOVE_KEY %>" value="<%= PortletsUtils.BUTTON_CANCEL %>" alt="<%= PortletsUtils.BUTTON_CANCEL %>" height="100%" width="100%""/>
						</td>
					</tr>					
				</table>
			</form>
		</td>
  	</tr>
</table>


